{include file=top.html}
<div class="wrapper channel">
    <!-- 导航电梯 start -->
    <div class="ju-ele-nav">
        <div class="top">
             <h2>
                <a class="logo" href="{url app=ju}"></a>
            </h2>
        </div>
        <div class="ct">
            <!--{foreach from=$cate_list item=cate name=fe_cate}-->
             <h2 ectype="cate">
                <a href="javascript:;" id="{$cate.id}">{$cate.value}</a>
            </h2>
            <ul class="jcategory" ectype="cate">
            	<!--{foreach from=$cate.children item=child name=fe_child}-->
                <li><a href="{url app=ju&cate_id=$child.id}"><span>{$child.value}</span></a>
                </li>
                <!--{/foreach}-->
            </ul>
            <!--{/foreach}-->
        </div>
        <div class="bt"></div>
    </div>
    <!-- 电梯 end -->
    <div id="page">
        <div class="ju-naver">
            <div class="inner w">
                <div class="top-search">
                 <div class="top-search-box clearfix">
                    <div class="form-fields float-right">
                        <form method="GET" action="{url app=ju}">
                            <input type="hidden" name="app" value="ju" />
                            <input type="hidden" name="act" value="index" />
                            <input type="text"   name="keyword" value="{if $smarty.get.keyword}{$smarty.get.keyword}{else}{$lang.search_is_ease}{/if}" onfocus="if (this.value=='{$lang.search_is_ease}') this.value = '';"  class="keyword"  style="color:#999;"/>
                            <input type="submit" value="{$lang.search}" class="submit" hidefocus="true" />
                        </form>
                    </div>
                 </div>
              </div>
                <!-- right menu -->
                <ul class="nav-menu">
                    <li class="menu-home"><a class="menu-link" href="{url app=ju}"><span>{$lang.index}</span></a>
                    </li>
                    <li class=" menu-brands">
                        <a class="menu-link"  href="{url app=ju_brand}"> <span>{$lang.ju_brand}</span>
     <em class="btn-dropdown"></em>
                        </a>
                    </li>
                    {if $o_cate_list.20}<li class=" menu-jump"><a class="menu-link" target="_blank" href="{url app=ju_mingpin}"><span>{$o_cate_list.20.cate_name}</span></a>{/if}
                    </li>
                    {if $o_cate_list.25}<li class=" menu-jiazhuang"><a class="menu-link" target="_blank" href="{url app=ju_decoration}"><span>{$o_cate_list.25.cate_name}</span></a>
                    </li>{/if}
                    {if $o_cate_list.2}<li class=" menu-local">
                        <a class="menu-link" target="_blank" href="{url app=ju_life}"> <span>{$o_cate_list.2.cate_name}</span>
     
                        </a>
                    </li>{/if}
                    {if $o_cate_list.30}<li class=" menu-travel">
                        <a class="menu-link" target="_blank" href="{url app=ju_travel}"> <span>{$o_cate_list.30.cate_name}</span>
                        </a>
                    </li>{/if}
                </ul>
            </div>
        </div>
        <div class="detail" id="content">
            	<div class="ju-location">
                	<a href="{url app=ju}" class="bd-top">{$lang.today_ju}</a>
                    <span class="arrow"></span>
                    <span>{$lang.groupbuy_detail}</span></div>
                <div class="main-box avil">
                        <div class="box-body">
                             <h2>{$groupbuy.group_name|escape}</h2>
                             <div class="info-box clearfix">
                                    <div class="picbox">
                                        <div class="pic">
                                        	<a href="{url app=group&id=$groupbuy.goods_id&gid=$groupbuy.group_id}" target="_blank">
                                            	<img src="{if $groupbuy.image}{$groupbuy.image}{else}{$groupbuy.default_image}{/if}" height="327" width="490" alt="{$groupbuy.goods_name|escape}">
                                            </a>
                                        </div>
                                    </div>
                                    <div class="meta">
                                        <div class="it-buy">
                                            <strong class="juPrices">{$groupbuy.group_price|price}</strong>
                                            <span class="discount">{$lang.privilege}{$groupbuy.discount}%</span>
                                            <a class="buy" href="{url app=group&id=$groupbuy.goods_id&gid=$groupbuy.group_id}" title="{$lang.join_group}"></a>
                                        </div>            
                                        <div class="it-prices">
                                              <dl>
                                                <dt class="price">{$lang.original_price}</dt>                
                                                <dt class="save">{$lang.save}</dt>
                                                <dd class="price"><del>{$groupbuy.price|price}</del></dd>
                                                <dd class="save">{$groupbuy.price_save|price}</dd>
                                             </dl>
                                        </div>
                                        <div class="it-sold">
                                             <p class="sold">{$lang.sold_out}：<strong>{$groupbuy.group_count}</strong></p>
                                             <p class="desc">{$lang.buy_hint}!</p>
                                        </div>            
                                        <div class="time-count J_Countdown">
                                            <span class="flip-top J_NumDays" >{$groupbuy.lefttime.d}</span><em>:</em>
                                            <span class="flip-top J_NumHours">{$groupbuy.lefttime.h}</span><em>:</em>
                                            <span class="flip-top J_NumMins" >{$groupbuy.lefttime.m}</span><em>:</em>
                                            <span class="flip-top J_NumSeconds">{$groupbuy.lefttime.s}</span>
                                        </div>
                                        <div class="info-bar">
                                            <div class="it_share">
                                                <!-- JiaThis Button BEGIN -->
                                                <div id="ckepop">
                                                    <a href="http://www.jiathis.com/share" class="jiathis jiathis_txt share-widget-btn" target="_blank">{$lang.share}</a>
                                                </div>
                                                <script type="text/javascript" src="http://v3.jiathis.com/code_mini/jia.js?uid=1340070748395605" charset="utf-8"></script>
                                                <!-- JiaThis Button END -->  
                                            </div>
                                            <div class="it-fav"><a href="javascript:collect_goods({$groupbuy.goods_id});" class="fav-widget-btn"></a></div>
                            			</div>
                                  </div><!--/meta-->
                            </div><!-- /info-box -->
                        </div>
                        <div class="box-down clearfix">
                          <div class="box-lside">   
                              <div class="it-detail">
                                <ul class="detail-tab">
                                    <li class="current" id="tab1"><span>{$lang.groupbuy_detail}</span><s></s></li>
                                    <li id="tab2"><span>{$lang.before_evaluation}</span><s></s></li>
                                    <li id="tab3"><span>{$lang.place_order_just_now}</span><s></s></li>
                               </ul>
                               <div class="detail-con" tabid="tab1">
                                    <!-- 保证金 -->
                                    <div class="ju-qc-main">
                                        <div class="ju-qc-content">
                                            <div class="qc-detail-box deposit">
                                                <h5>{$lang.this_seller_supply_promise}</h5>
                                                <div class="qc-info">{$lang.hint1}</div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="infodetail">
                                    	{$groupbuy.group_desc}
                                    </div>
                                    <p class="detail-link-more">
                                       <a target="_blank" href="{url app=group&id=$groupbuy.goods_id&gid=$groupbuy.group_id}">{$lang.view_more_detail}</a>
                                    </p>
                              </div>
                              <div class="detail-con" tabid="tab2" style="display:none">
                                   <div class="message">
                                        <!-- {foreach from=$goods_comments item=comment} -->
                                        <dl>
                                        	<dt>
                                            	<p class="eval-txt">{$comment.comment|escape|nl2br}</p>
                                                <p class="time">[{$comment.evaluation_time|date:complete}]</p>
                                           </dt>
                                            <dd>
                                                <div class="beat">
                                                {$lang.evaluation}:
                                                {if $comment.evaluation eq 1}<img src="{res file=images/heart_1.gif}" />{/if}
                                                {if $comment.evaluation eq 2}<img src="{res file=images/heart_2.gif}" />{/if}
                                                {if $comment.evaluation eq 3}<img src="{res file=images/heart_3.gif}" />{/if}
                                                {if $comment.evaluation eq 4}<img src="{res file=images/heart_4.gif}" />{/if}
                                                {if $comment.evaluation eq 5}<img src="{res file=images/heart_5.gif}" />{/if}
                                            	</div>
                                                <p>{if $comment.anonymous}***{else}{$comment.buyer_name|escape}{/if}</p>
                                            </dd>
                                        </dl>
                                        <!-- {foreachelse} -->
                                        <div class="message_text">{$lang.no_records}</div>
                                        <!-- {/foreach} -->
                                	</div>
                               </div>
                               <div class="detail-con" tabid="tab3" style="display:none">
                                    
                                    <!--{if $order_list}-->
                                    <div class="buyer">
                                            <div class="hd">
                                                <h3>{$lang.seller_notice} </h3>
                                            </div>
                                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                <thead>
                                                    <tr>
                                                        <th>{$lang.buyer_name}</th>
                                                        <th>{$lang.goods_name}</th>
                                                        <th>{$lang.offer_price}</th>
                                                        <th>{$lang.purchase_quantity}</th>
                                                        <th>{$lang.order_time}</th>
                                                    </tr>
                                                </thead>
                                                <tbody>
                                                    <!--{foreach from=$order_list item=order}-->
                                                     <tr>
                                                        <td>{$order.buyer_name}</td>
                                                        <td><a href="{url app=group&id=$order.goods_id&gid=$order.group_id}">{$groupbuy.group_name|truncate:34}</a></td>
                                                        <td>{$order.price}</td>
                                                        <td>{$order.quantity}</td>
                                                        <td>{$order.add_time|date:complete}</td>
                                                    </tr>
                                                    <!--{/foreach}-->
                                                </tbody>
                                            </table> 
                                    </div>
                                    <!--{else}--> 
                                    <div class="message_text">{$lang.no_records}</div>
                                    <!--{/if}--> 
                                </div>
                              </div>
                            <!--大按钮-->
                              <div class="buy-bottom">           
                                <!-- 购买按钮 -->
                                <!-- 购买按钮 -->
                                    <div class="it-buy avil">
                                        <strong class="J_juPrices">{$groupbuy.group_price|price}</strong>
                                        <span class="discount">{$lang.privilege}{$groupbuy.discount}%</span>
                                         <a class="buy" href="{url app=group&id=$groupbuy.goods_id&gid=$groupbuy.group_id}" title="{$lang.join_group}"></a>
                                    </div>
                                    <div class="it-prices">
                                          <dl>
                                            <dt class="price">{$lang.original_price}</dt>                
                                            <dt class="save">{$lang.save}</dt>
                                            <dd class="price"><del>{$groupbuy.price|price}</del></dd>
                                            <dd class="save">{$groupbuy.price_save|price}</dd>
                                         </dl>
                                    </div>			<!-- 购买情况 -->
                                    <div class="it-sold">
                                         <p class="sold">{$lang.sold_out}：<strong>{$groupbuy.group_count}</strong></p>
                                         <p class="desc">{$lang.buy_hint}</p>
                                    </div> 
                    		  </div>
                            
                          </div>
                          <div class="ju-sider">		
                                 <div class="biz-info">
                                    <h3>{$lang.seller_info}</h3>
                                    <div class="inner">
                                         <div class="basic-inf">
                                         		<div class="field">
                                                        <div class="term">{$lang.store}：</div>
                                                        <div class="con"><a href="{url app=store&id=$store.store_id}" target="_blank">{$store.store_name|escape}</a></div>
                                                </div>
                                                <div class="field">
                                                    <div class="term">{$lang.palmar_ark}：</div>
                                                    <div class="con inf-seller">
                                                        {$store.owner_name|escape}
                                                    </div>
                                                </div>
                                                <div class="field">
                                                    <div class="term">{$lang.cus_serivce}：</div>
                                                    <div class="con">
                                                        <span class="ww-light ww-large">
                                                            <!--{if $store.im_qq}-->
                                                            <a href="http://wpa.qq.com/msgrd?V=1&amp;Uin={$store.im_qq|escape}&amp;Site={$store.store_name|escape}&amp;Menu=yes" target="_blank"><img src="http://wpa.qq.com/pa?p=1:{$store.im_qq|escape}:4" alt="QQ"></a>
                                                            <!--{/if}-->
                                                            <!--{if $store.im_ww}-->
                                                            <a target="_blank" href="http://amos.im.alisoft.com/msg.aw?v=2&uid={$store.im_ww|escape:url}&site=cntaobao&s=2&charset={$charset}" ><img border="0" src="http://amos.im.alisoft.com/online.aw?v=2&uid={$store.im_ww|escape:url}&site=cntaobao&s=2&charset={$charset}" alt="Wang Wang" /></a>
                                                            <!--{/if}-->
                                                        </span>
                                                    </div>
                                                </div>
                                                <div class="field">
                                                        <div class="term">{$lang.region}：</div>
                                                        <div class="con">{$store.region_name}</div>
                                                </div>
                                                <div class="field">
                                                        <div class="term">{$lang.address}：</div>
                                                        <div class="con">{$store.address}</div>
                                                </div>
                                                <div class="field">
                                                        <div class="term">{$lang.tele}：</div>
                                                        <div class="con">{$store.tel}</div>
                                                </div>
                                            </div>
                                    </div>
                                    <!-- 商家信息 结束 -->
                                 </div>
                                 <div class="ju-recommend" style="display:block;">
                                        <h3>{$lang.for_you_recom}</h3>
                                        <ul>
                                        	<!--{foreach from=$groupbuy_hot item=group}-->
                                        	<li>
                                            	<a target="_blank" href="{url app=ju&act=show&id=$group.group_id}" class="ju-recommend-pic">
                                                	<img width="160" height="107" src="{$group.image}" alt="{$group.goods_name|escape}" />
                                                    <span class="ju-recommend-discount"><b>{$lang.privilege}{$group.discount}</b><span>%</span>
                                                    </span>
                                                 </a>
                                                 <a target="_blank" href="{url app=ju&act=show&id=group.group_id}" class="ju-recommend-title">{$group.goods_name|escape}</a>
                                                    <p class="ju-recommend-price"><del>{$group.price|price}</del><span>{$group.group_price|price}</span></p>
                                            </li>
                                            <!--{/foreach}-->
                                         </ul>
                                 </div>
                           </div>
                        </div>
               </div>
         </div>
    </div>
</div>
<script type="text/javascript">
$(document).ready(function(){
	
	$.each($('.J_Countdown'),function(){
	
		var theDaysBox  = $(this).find('.J_NumDays');
		var theHoursBox = $(this).find('.J_NumHours');
		var theMinsBox  = $(this).find('.J_NumMins');
		var theSecsBox  = $(this).find('.J_NumSeconds');
		
		countdown(theDaysBox, theHoursBox, theMinsBox, theSecsBox);
	});
   
   $(".detail-tab li").click(function(){
	   $(".detail-tab li").each(function(){
		   $(this).removeClass("current");
		   $(".detail-con").hide();
		});
		$(this).addClass("current");
		var id = $(this).attr("id");
		$("[tabid="+id+"]").show();
	})
	
});
</script>
{include file=footer.html}